package
{
	
	import com.lakala.bank.MainPanel;
	import com.lakala.bank.MyBitmapDecorator;
	import org.aswing.border.EmptyBorder;
	import flash.display.Screen;
	import org.aswing.Insets;
	import org.aswing.*;
	import org.aswing.AsWingManager;
	import org.aswing.air.JNativeFrame;
	import org.aswing.air.JNativeWindow;
	import org.aswing.JWindow;
	import org.aswing.plaf.*;
	public class Charchen_tool extends JNativeWindow
	{
		public static var WINDOW:JWindow;
		private var mainFrame:JNativeFrame;
		private var mainPanel:MainPanel;
		public function Charchen_tool()
		{
			AsWingManager.initAsStandard(this);
			super(this.stage.nativeWindow);
			WINDOW=new JWindow(this);
			WINDOW.setBackgroundDecorator(new MyBitmapDecorator(null, true, false));
			WINDOW.setBorder(new EmptyBorder(null, new Insets(4, 4, 4, 4)));
			
			WINDOW.setSizeWH(1024, 600);
			WINDOW.show();
			UIManager.getDefaults().put( "Button.foreground",new ASColorUIResource(0xDDDD00, 1));
			mainPanel=new MainPanel();
			
			mainFrame=new JNativeFrame(null,"客户联络日期提示工具FOR袁梅",false);
			mainFrame.setResizable(false);
			mainFrame.setIcon(new LoadIcon("asset/lkl24.png"))
			mainFrame.setSizeWH(mainPanel.getWidth()+20,mainPanel.getHeight()+40);
			mainFrame.setX((Screen.mainScreen.bounds.width-mainFrame.getWidth())/2);
			mainFrame.setY((Screen.mainScreen.bounds.height-mainFrame.getHeight())/2);
			mainFrame.getContentPane().append(mainPanel);
			this.stage.nativeWindow.close();
			this.stage.nativeWindow.restore();
			
			
		}
	}
}